// MagicSlider.cpp : implementation file
//

#include "stdafx.h"
#include "GrandiaX Mana Egg Table Generator.h"
#include "MagicSlider.h"


// CMagicSlider

IMPLEMENT_DYNAMIC(CMagicSlider, CSliderCtrl)

CMagicSlider::CMagicSlider()
{

}

CMagicSlider::~CMagicSlider()
{
}


BEGIN_MESSAGE_MAP(CMagicSlider, CSliderCtrl)
	ON_WM_MOUSEMOVE()
END_MESSAGE_MAP()



// CMagicSlider message handlers

void CMagicSlider::SetEventHandler(MagicSliderEvents* e)
{
	SliderEventHandler = e;
}

void CMagicSlider::OnMouseMove(UINT nFlags, CPoint point)
{
	// TODO: Add your message handler code here and/or call default

    if (MK_LBUTTON & nFlags)
    {
    	SliderEventHandler->OnPosChange(this);
    }

	CSliderCtrl::OnMouseMove(nFlags, point);
}
